<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'web-adsmanage-sort-form',
        'enableAjaxValidation' => false
            ));
    ?>

     <div class="row">
        <?php echo $form->labelEx($model, 'ads_webset'); ?>
       <?php echo $form->dropDownList($model, 'ads_webset', Subsite::model()->getdomain()); ?>
        <?php echo $form->error($model, 'ads_webset', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ads_name'); ?>
        <?php echo $form->textField($model, 'ads_name', array('size' => 30, 'maxlength' => 50)); ?>
        <?php echo $form->error($model, 'ads_name', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
        <div class="row">
        <?php echo $form->labelEx($model, 'ads_start'); ?>
        <?php echo $form->dropDownList($model, 'ads_start', WebAdsmanageSort::model()->ads_state_array); ?>
        <?php echo $form->error($model, 'ads_start', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ads_type'); ?>
        <?php echo $form->dropDownList($model, 'ads_type', WebAdsmanageSort::model()->ads_type_array); ?>
        <?php echo $form->error($model, 'ads_type', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
        <div class="row">
        <?php echo $form->labelEx($model, 'ads_width'); ?>
        <?php echo $form->textField($model, 'ads_width', array('size' => 10, 'maxlength' => 20)); ?>
        <?php echo $form->error($model, 'ads_width', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
        <div class="row">
        <?php echo $form->labelEx($model, 'ads_height'); ?>
        <?php echo $form->textField($model, 'ads_height', array('size' => 10, 'maxlength' => 20)); ?>
        <?php echo $form->error($model, 'ads_height', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'start_time'); ?>
        <?php
        //echo $form->textField($model, 'start_time', array('size' => 11, 'maxlength' => 11));
        $this->widget('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker', array(
            'mode' => 'date',
            'name' => 'WebAdsmanageSort[start_time]',
            'id' => 'WebAdsmanageSort_start_time'
        ));
        ?>
        <?php echo $form->error($model, 'start_time', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'end_time'); ?>
        <?php
        //echo $form->textField($model, 'start_time', array('size' => 11, 'maxlength' => 11));
        $this->widget('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker', array(
            'mode' => 'date',
            'name' => 'WebAdsmanageSort[end_time]',
            'id' => 'WebAdsmanageSort_end_time'
        ));
        ?>
        <?php echo $form->error($model, 'end_time', array('class' => 'form-msg-error-advanced')); ?>
    </div>    
    
    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>

                        <script>
                            $(function(){
                                $('#WebAdsmanageSort_ads_webset').combobox();
                            });
                        </script>